import request from '@/utils/request'
import qs from 'qs'

export function findListByPage(params) {
  return request({
    url: '/api/data/table/fieldMap' + '?' + qs.stringify(params, { indices: false }),
    method: 'get'
  })
}

export function add(data) {
  return request({
    url: '/api/data/table/fieldMap',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/api/data/table/fieldMap',
    method: 'put',
    data
  })
}

export function del(pkIds) {
  return request({
    url: '/api/data/table/fieldMap/' + pkIds,
    method: 'delete'
  })
}

export default {
  findListByPage,
  add,
  edit,
  del
}
